package com.iccct.provider.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * comment
 *
 * @author iccct (taowutt1@gmail.com)
 * @since 2021-07-28  14:03
 */
@RestController
@RequestMapping("/provider")
public class EchoController {
    @Value("${server.port}")
    private Integer port;


    @GetMapping("/echo/{str}")
    public String echo(@PathVariable("str") String str){
        return "hello discoveryClient: " + str + port;
    }


}
